package com.finance.system.user.service;

import com.finance.system.support.bean.OffsetQuery;
import com.finance.system.support.bean.OffsetResult;
import com.finance.system.support.bean.ResultBean;
import com.finance.system.user.entity.*;
import com.finance.system.support.IBaseService;

import java.util.List;
import java.util.Map;
import java.util.Set;

/**
 * <p>
 * 用户表，存放系统用户信息 服务类
 * </p>
 *
 * @author whdong
 * @since 2019-12-24
 */
public interface IUserService extends IBaseService<UserEntity> {

    OffsetResult<UserOutbound> getUserList(UserInbound user, OffsetQuery<UserEntity> offsetQuery);
    Map<String,UserEntity> getUserMapByIds(Set<Long> ids);
    UserEntity getByUserName(String username);
    UserEntity getByPhone(String phone);


    ResultBean<List<UserEntity>> getUserByGroupId(String groupId);


    ResultBean addUserInToGroup(UserGroupRelationEntity relation);
}
